public class Text {
    public static void main(String[] args) {
        LinkedList linkedList = new LinkedList();
        linkedList.addFirst(22);
        linkedList.addFirst(29);
        linkedList.addFirst(20);
        linkedList.addFirst(14);
        linkedList.display();
        System.out.println(linkedList.size());
        linkedList.addLast(7);
        linkedList.addLast(99);
        linkedList.addLast(24);
        linkedList.addLast(48);
        linkedList.display();
        System.out.println(linkedList.size());
        linkedList.addIndex(4, 34);
        linkedList.display();
        System.out.println(linkedList.contains(48));
        linkedList.remove(7);
        linkedList.display();
        linkedList.addFirst(4);
        linkedList.addFirst(4);
        linkedList.addFirst(4);
        linkedList.addFirst(4);
        linkedList.addFirst(4);
        linkedList.addFirst(4);
        linkedList.addIndex(8,4);
        linkedList.addIndex(11,4);
        linkedList.display();
        linkedList.remove(99);
        linkedList.display();
        linkedList.removeAllKey(4);
        linkedList.display();
    }
}
